﻿@model DotaHelp.Models.Guide

<div class="info">Гайд от @Html.ShowUserName(Model.Author)
    (@Model.Date.ToString()) 
    @Html.Raiting("Guides", Model.Id, Model.Rating) 
    (@Model.Version) 
    @Html.RouteLink("(обсудить)", "Guide", new { id = Model.Id }, new { style = "margin-left:5px" })
    @Html.Delete("Guides", Model.Id)
</div>                         
<div style="vertical-align:middle">
    <table>
        <tr>                
           @if (ViewData.ContainsKey("ShowHero"))
           {
                 <td align="center">@Html.LinkOnHero(Model.Hero)</td>
           }
           <td>@Html.RouteLink("Перейти к " + Model.Title, "Guide", new { id = Model.Id }, new { style = "font-size:16px; font-family:Arial, sans-serif;height:1.2em" })</td>
        </tr>
    </table>
</div>  

@if ((bool?)ViewData["ShowComments"] == true)
{ 
    <div style="margin-left:20px">    
        @Html.CompactComments(Url.RouteUrl("Guide", new { id = Model.Id }))          
    </div>
}